package org.elec.mac.service;


import org.elec.mac.entity.SBasics;
import org.elec.mac.entity.SCategory;
import org.elec.mac.mapper.SBasicsMapper;
import org.elec.mac.mapper.SCategoryMapper;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description:实现类
 * @author 
 * @version 1.0
 * @created 
 */
@Service
public class SBasicsService extends BaseService<SBasics,SBasicsMapper> implements InitializingBean {

	@Autowired
	private SBasicsMapper sBasicsMapper;
	
	public void afterPropertiesSet() throws Exception {
		this.setBaseMapper(sBasicsMapper);
	}

	public List<SBasics> getProductBasics(Integer pid) {
		return sBasicsMapper.getProductBasics(pid);
	}

	public List<SBasics> getDeviceBasics(Integer did) {
		return sBasicsMapper.getDeviceBasics(did);
	}

}
